package com.ftg.learn.service;


import com.ftg.learn.dao.Dept;
import com.ftg.learn.mapper.DeptMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DeptService {

    @Autowired
    DeptMapper deptMapper;

    public List<Dept> showAll(){

        return deptMapper.showall();
    }
}
